package com.yonyou.framework.library.net;

import com.yonyou.framework.library.bean.ErrorBean;

/**
 * Created by ljt on 2018/5/16.
 */

public interface BaseListener<T> {
    /**
     * 请求接口成功
     *
     * @param event_tag
     * @param data
     */
    void onSuccess(int event_tag, T data);

    /**
     * 请求接口成功但返回失败
     *
     * @param msg
     */
    void onError(String msg);

    /**
     * 请求接口失败
     *
     * @param msg
     */
    void onException(String msg);

    /**
     * @param error
     */
    void onBusinessError(ErrorBean error);

}
